Connectors: Register Akismet as a default non-AI connector#11688
Connectors: Register Akismet as a default non-AI connector#11688jorgefilipecosta wants to merge 3 commits intoWordPress:trunkfrom
Conversation
Adds Akismet to the default connector registry as a `spam_filtering` type, with plugin metadata pointing to `akismet/akismet.php` and API key authentication wired to the existing `wordpress_api_key` option / `WPCOM_API_KEY` constant. The `is_active` callback defaults to `__return_false` so the connector reports inactive until the Akismet plugin overrides it from its own registration.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
The default connector registry now includes Akismet, which is a `spam_filtering` connector that uses the legacy `wordpress_api_key` option. Update the test expectations to allow non-AI connector types and skip the AI-specific `connectors_ai_{id}_api_key` setting-name format check for them.
Summary
spam_filteringtype.akismet/akismet.phpwith anis_activecallback defaulting to__return_false, so the connector reports inactive until the Akismet plugin overrides it from its own registration.wordpress_api_keyoption /WPCOM_API_KEYconstant for API key authentication, and points users tohttps://akismet.com/get/for credentials.Must be tested with the latest version of akismet.
Test plan
is_activeasfalse.is_activecallback, confirm the connector reportsis_activeastrue.wordpress_api_keyoption andWPCOM_API_KEYconstant are picked up as credentials.